<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */
use Faker\Generator as Faker;
use Illuminate\Support\Str;

/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
| This directory should contain each of the model factory definitions for
| your application. Factories provide a convenient way to generate new
| model instances for testing / seeding your application's database.
|
*/

$factory->define(\App\Models\Business\Food::class, function (Faker $faker) {
    return [
        'name' =>$faker->name,
        'price' =>$faker->randomFloat($nbMaxDecimals = 3, $min = 0, $max = 2),
        'body' =>$faker->text,
        'num' =>$faker->numberBetween(0,20),
        'color'=>$faker->hexcolor,
        'category_id'=>$faker->numberBetween(1,5),
        'food_item' =>$faker->numberBetween(2000,5000),
        'business_id'=>$faker->numberBetween(1,20),
        'market_price'=>$faker->randomFloat($nbMaxDecimals = 5, $min = 1, $max = 2),
        'brand_id' =>$faker->numberBetween(1,20),
        'sort' =>$faker->numberBetween(1,100),
        'food_num'=>$faker->numberBetween(100,200),
    ];
});
